let i = 0;
function batch(){
  i++;
  if(i==2){
    // 使得点击两下后里面的内容仍然是批量操作
    let batch1 = document.getElementById("batch1");
    batch1.innerHTML = "批量操作";
    let batch_img = document.getElementById("batch_img");
    batch_img.style.marginLeft = "15px";
    //根据class获取数据
    // 多选按钮
    let check_btn = document.getElementsByClassName("check_btn");
    for(let i=0;i<check_btn.length;i++){
      check_btn[i].style.display = "none";
    }
    // 全选按钮
    let check_btn1 = document.getElementsByClassName("check_btn1");
    check_btn1[0].style.display = "none";
    // 如果是勾选状态下点击的取消批量操作那则全部变为不勾选
    let check = document.getElementsByName("check");
    let check1 = document.getElementsByName("check1");
    for(let i=0;i<check.length;i++){
      check[i].checked = false;
    }
    check1[0].checked = false;
    i = 0;
  }else {
    // 使得点击一下后里面的内容仍然是取消批量操作
    let batch1 = document.getElementById("batch1");
    batch1.innerHTML = "取消批量操作";
    let batch_img = document.getElementById("batch_img");
    batch_img.style.marginLeft = "0px";
    //根据class获取数据
    // 多选按钮
    let check_btn = document.getElementsByClassName("check_btn");
    for(let i=0;i<check_btn.length;i++){
      check_btn[i].style.display = "block";
    }
    let check_btn1 = document.getElementsByClassName("check_btn1");
    check_btn1[0].style.display = "block";
  }
}